	<div id="header">

		<div id="header_content">

			<ul id="nav_admin" class="menu">

				<li><a href="<?php echo $html->url(array('controller'=>'logs','action'=>'index', 'admin' => true, 'plugin' => null));?>" <?php if($this->params['controller'] == 'logs' || $this->params['controller'] == 'config'){?>class="active"<?php } ?>><?php __('main');?></a></li>

				<li><a href="<?php echo $html->url(array('controller'=>'menus','action'=>'index', 'admin' => true, 'plugin' => null));?>" <?php if($this->params['controller'] == 'menus'){?>class="active"<?php } ?>><?php __('menu');?></a></li>

				<li><a href="<?php echo $html->url(array('controller'=>'pages','action'=>'index', 'admin' => true, 'plugin' => null));?>" <?php if($this->params['controller'] == 'pages'){?>class="active"<?php } ?>><?php __('pages');?></a></li>

				<!-- Plugins -->
				<?php if(isset($config_plugins) && is_array($config_plugins) && !empty($config_plugins)){
					$total = count($config_plugins);
					$i = 0;
				?>
				<li><a href="#" class="sub"> <?php __('plugins');?> </a>
					<ul>
						<?php foreach($config_plugins as $index => $value){?>
						<li <?php if($i + 1 == $total){?>class="last"<?php } ?>><a href="<?php echo $html->url(array('controller'=>$value['controller'],'action'=>$value['action'], 'admin' => true, 'plugin' => $index));?>"><?php __($index);?></a></li>
						<?php $i++;} ?>
					</ul>
				</li>
				<?php } ?>
				<!-- Fin plugins -->

				<li><a href="<?php echo $html->url(array('controller'=>'users','action'=>'index', 'admin' => true, 'plugin' => null));?>" <?php if($this->params['controller'] == 'users' || $this->params['controller'] == 'groups'){?>class="active"<?php } ?>><?php __('users');?></a></li>

				<li class="last"><a href="<?php echo $html->url(array('controller'=>'backup','action'=>'index', 'admin' => true, 'plugin' => null));?>" <?php if($this->params['controller'] == 'backup'){?>class="active"<?php } ?>><?php __('utilities');?></a></li>

			</ul>

		</div>

	</div>

	<div id="subnav">

		<div id="subnav_content">

			<ul>

				<?php foreach($sub_menu as $index => $value){?>

				<li><a href="<?php echo $html->url(array('controller'=>$index,'action'=>$value, 'admin' => true));?>" <?php if($this->params['controller'] == $index){?>class="active"<?php } ?>>
				<?php 
				//Sino no existe en el default.po busca en las traducciones del plugin
				if(__($index, true) == $index && isset($this->params['plugin']))
					__d($this->params['plugin'],$index);
				else
					__($index);
				?></a></li>

				<?php } ?>
			</ul>

		</div>

	</div>

<?php echo $html->script(array('protofish-min'));?>
<script type="text/javascript">
	document.observe('dom:loaded', function(){
		new ProtoFish('nav_admin', '0', 'hover', false, true, true);
	});
</script>

